package cn.lili.modules.store.client;

import cn.lili.modules.constant.ServiceConstant;
import cn.lili.modules.store.fallback.StoreStatisticsFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author paulG
 * @since 2022/6/24
 **/
@FeignClient(path = "${server.servlet.context-path}", name = ServiceConstant.USER_SERVICE, contextId = "storeStatistics", fallback = StoreStatisticsFallback.class)
public interface StoreStatisticsClient {


    /**
     * 获取待审核店铺数量
     *
     * @return 待审核店铺数量
     */
    @GetMapping("/feign/store/statistics/auditNum")
    long auditNum();

    /**
     * 获取所有店铺数量
     *
     * @return 店铺总数
     */
    @GetMapping("/feign/store/statistics/storeNum")
    long storeNum();

    /**
     * 获取今天的店铺数量
     *
     * @return 今天的店铺数量
     */
    @GetMapping("/feign/store/statistics/todayStoreNum")
    long todayStoreNum();

    @GetMapping("/feign/store/statistics/storeNumByUrban")
    long storeNumByUrban();

    @GetMapping("/feign/store/statistics/auditNumByUrban")
    long auditNumByUrban();
}
